#include <stdio.h>
#include <stdlib.h>

#include <defines.h>
#include <impl.h>


void usage()
{
    printf("\n");
    printf("This is a simple sample with crash. Maybe it crash when you seed a content \n"
           "'1234~1236' with a file.\n");
    printf("Usage:\n");
    printf("  <.exe> <file-path>\n");
    exit(1);
}

int ATTRIBUTE_EXPORT ATTRIBUTE_NOINLINE main(int argc, char **argv)
{
    if (2 != argc)
        usage();

    return harness(argv[1]);
}
